rendernodeparser: Allow parsing strings
authorBenjamin Otte <otte@redhat.com>
Sun, 19 May 2019 18:20:09 +0000 (20:20 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 21 May 2019 04:43:59 +0000 (06:43 +0200)
commitb90a66cab5baf284aea9aef58a9b0b6fd536650d
tree869b8c7f9225cd57d36591f5af1751acf0f518e1
parent1a65a6ce76587fcb0675b72a450316d4149540be
rendernodeparser: Allow parsing strings

Instead of only allowing for glyph indexes, allow ASCII characters as
replacements. So this glyph sequence
  glyphs: 65 8, 66 8, 67 8
Can be replaced by
  glyphs: "ABC"
provided that the glyph for "A", "B" and "C" are 65, 66 and 67
respectively and their advance is exactly 8.
x offset and y offset must always be 0 and every glyph must start a
cluster.
gsk/gskrendernode.h
gsk/gskrendernodeimpl.c
gsk/gskrendernodeparser.c
testsuite/gsk/serializedeserialize/testswitch.node
testsuite/gsk/serializedeserialize/widgetfactory.node